﻿/*************************************************************************
* @File			:	BaseManager.cs
* @Description	:
*
*
*
*
************************************************************************/
using System;

namespace Framework
{
    // -----------------------------------------------------------------------
    // @brief 管理基类
    public class BaseManager<T> : Singleton<T> where T : class, IManager, new()
    {
        protected float nextUpdateTime;
        protected float updateInterval;

        public static T Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = Singleton<T>.Instance;
                    instance.Init();
                }
                return instance;
            }
        }
    }
}

